#!/usr/bin/env python
"""
python3 support encoding utf-8


"""
# -*- coding:utf-8 -*-

# Author:zbsilent

import getpass  # 库文件

# 数字 字母 下划线


myString = "Zbsilent"
# myString2 = myString
# _myString3 = "你好，世界"
_intString = 13
_floatString = 13423423434534534534534535435
_floatString2 = 234234234.0000
# print("Hello World", myString, myString2, _myString3)
#
# myString = "PaoChe ge"
# print(myString, myString2)  # 地址未发生改变 分配到空间未改变
#

"""
This is a groups style docs. #by google style annotated

Parameters:
    param1 - this is the first param
    param2 - this is a second param

Returns:
    This is a description of what is returned

Raises:
    KeyError - raises an exception
"""

# name = raw_input("What is your name?") #only on python 2.x

# print(msg)
# name = getpass.getpass("请输入密码")
# print(name)

# %s的作用 代表的是String
age = int(input(" Please input age "))
print(type(age))

info = """
--------------------------------- info1--- %s ---------------------------------
    
    name:%i
    float:%f
    age:%i
    input on python 2.x 输入什么状态就是什么状态 2.x user raw_inpt
    
---------------------------------    end pro  ---------------------------------
""" % (myString, _intString, _floatString, age, age)
print(info)

info2 = """
--------------------------------- info2---{_myString}---------------------------------

     name:{_myString}
     
---------------------------------    end pro  ---------------------------------
""".format(_myString=myString)

print(info2)

info3 = """
--------------------------------- info3---{0}---------------------------------

     name:{0}
     尽量少用字符串拼接+ 因为+ 开辟多块内存空间

---------------------------------    end pro  ---------------------------------
""".format(age)

print(info3)
# 密文显示

_pass = getpass.getpass("please input UserName")
print("Pass is " + _pass)
